import 'package:flutter/foundation.dart';

class RecordVideoBean {
  ///最小时长
  int minDuration;

  ///最大时长
  int maxDuration;

  RecordVideoBean({@required this.minDuration, @required this.maxDuration});

  RecordVideoBean.fromJson(Map<String, dynamic> json) {
    this.minDuration = json['minDuration'];
    this.maxDuration = json['maxDuration'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['minDuration'] = this.minDuration;
    data['maxDuration'] = this.maxDuration;
    return data;
  }
}

class RecordVideoResultBean {
  ///视频路径
  String videoFilePath;

  ///视频后缀
  String videoFileSuffix;

  ///视频第一帧image地址
  String videoFrameImgPath;

  ///视频大小
  String videoFileSize;

  ///录制时长
  String videoFileTime;

  RecordVideoResultBean({
    this.videoFilePath,
    this.videoFileSuffix,
    this.videoFrameImgPath,
    this.videoFileSize,
    this.videoFileTime,
  });

  RecordVideoResultBean.fromJson(Map<String, dynamic> json) {
    this.videoFilePath = json['videoFilePath'];
    this.videoFileSuffix = json['videoFileSuffix'];
    this.videoFrameImgPath = json['videoFrameImgPath'];
    this.videoFileSize = json['videoFileSize'];
    this.videoFileTime = json['videoFileTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['videoFilePath'] = this.videoFilePath;
    data['videoFileSuffix'] = this.videoFileSuffix;
    data['videoFrameImgPath'] = this.videoFrameImgPath;
    data['videoFileSize'] = this.videoFileSize;
    data['videoFileTime'] = this.videoFileTime;
    data['videoFrameImgPath'] = this.videoFrameImgPath;
    return data;
  }
}
